﻿@model AffiliateModel

<div class="form-horizontal">
    <vc:admin-widget widget-zone="affiliate_details_info_top" additional-data="Model"/>
    <div class="form-body">

        @if (!string.IsNullOrEmpty(Model.Id))
        {
            <div class="form-group">
                <admin-label asp-for="Id"/>
                <div class="col-md-9 col-sm-9">
                    <label class="control-label">@Model.Id</label>
                </div>
            </div>
            <div class="form-group">
                <admin-label asp-for="Url"/>
                <div class="col-md-9 col-sm-9">
                    <label class="control-label">@Model.Url</label>
                </div>
            </div>
        }
        <div class="form-group">
            <admin-label asp-for="Active"/>
            <div class="col-md-9 col-sm-9">
                <label class="mt-checkbox mt-checkbox-outline control control-checkbox">
                    <admin-input asp-for="Active"/>
                    <div class="control__indicator"></div>
                </label>
                <span asp-validation-for="Active"></span>
            </div>
        </div>
        <div class="form-body">
            <admin-label asp-for="Name"/>
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="Name"/>
                <span asp-validation-for="Name"></span>
            </div>
        </div>
    </div>
</div>
<admin-input asp-for="Address" asp-template="Address"/>
<div class="form-horizontal">
    <div class="form-body">
        <div class="form-group">
            <admin-label asp-for="AdminComment"/>
            <div class="col-md-9 col-sm-9">
                <admin-textarea asp-for="AdminComment"></admin-textarea>
                <span asp-validation-for="AdminComment"></span>
            </div>
        </div>
        <div class="form-body">
            <admin-label asp-for="FriendlyUrlName"/>
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="FriendlyUrlName"/>
                <span asp-validation-for="FriendlyUrlName"></span>
            </div>
        </div>
    </div>
    <vc:admin-widget widget-zone="affiliate_details_info_bottom" additional-data="Model"/>
</div>